class TouristLoginModel {
  int? id;
  String? account;
  String? name;
  String? portrait;
  String? myId;
  int? isVip;
  int? diamond;
  int? collect;
  int? freeCount;
  String? endTime;
  String? token;

  TouristLoginModel(
      {this.id,
        this.account,
        this.name,
        this.portrait,
        this.myId,
        this.isVip,
        this.diamond,
        this.collect,
        this.freeCount,
        this.endTime,
        this.token});

  TouristLoginModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    account = json['account'];
    name = json['name'];
    portrait = json['portrait'];
    myId = json['myId'];
    isVip = json['isVip'];
    diamond = json['diamond'] ?? 0;
    collect = json['collect'] ?? 0;
    freeCount = json['freeCount'];
    endTime = json['endTime'];
    token = json['token'] ?? '';
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['account'] = this.account;
    data['name'] = this.name;
    data['portrait'] = this.portrait;
    data['myId'] = this.myId;
    data['isVip'] = this.isVip;
    data['diamond'] = this.diamond;
    data['collect'] = this.collect;
    data['freeCount'] = this.freeCount;
    data['endTime'] = this.endTime;
    data['token'] = this.token;
    return data;
  }
}
